package com.lwlk.zdk.model.sys;

import java.util.ArrayList;
import java.util.List;

public class sysEnterpriseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public sysEnterpriseExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andEnterpriseIdIsNull() {
            addCriterion("enterprise_id is null");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdIsNotNull() {
            addCriterion("enterprise_id is not null");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdEqualTo(Integer value) {
            addCriterion("enterprise_id =", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdNotEqualTo(Integer value) {
            addCriterion("enterprise_id <>", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdGreaterThan(Integer value) {
            addCriterion("enterprise_id >", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("enterprise_id >=", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdLessThan(Integer value) {
            addCriterion("enterprise_id <", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdLessThanOrEqualTo(Integer value) {
            addCriterion("enterprise_id <=", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdIn(List<Integer> values) {
            addCriterion("enterprise_id in", values, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdNotIn(List<Integer> values) {
            addCriterion("enterprise_id not in", values, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdBetween(Integer value1, Integer value2) {
            addCriterion("enterprise_id between", value1, value2, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("enterprise_id not between", value1, value2, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIsNull() {
            addCriterion("enterprise is null");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIsNotNull() {
            addCriterion("enterprise is not null");
            return (Criteria) this;
        }

        public Criteria andEnterpriseEqualTo(String value) {
            addCriterion("enterprise =", value, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseNotEqualTo(String value) {
            addCriterion("enterprise <>", value, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseGreaterThan(String value) {
            addCriterion("enterprise >", value, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseGreaterThanOrEqualTo(String value) {
            addCriterion("enterprise >=", value, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseLessThan(String value) {
            addCriterion("enterprise <", value, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseLessThanOrEqualTo(String value) {
            addCriterion("enterprise <=", value, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseLike(String value) {
            addCriterion("enterprise like", value, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseNotLike(String value) {
            addCriterion("enterprise not like", value, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIn(List<String> values) {
            addCriterion("enterprise in", values, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseNotIn(List<String> values) {
            addCriterion("enterprise not in", values, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseBetween(String value1, String value2) {
            addCriterion("enterprise between", value1, value2, "enterprise");
            return (Criteria) this;
        }

        public Criteria andEnterpriseNotBetween(String value1, String value2) {
            addCriterion("enterprise not between", value1, value2, "enterprise");
            return (Criteria) this;
        }

        public Criteria andPlatformIdIsNull() {
            addCriterion("platform_id is null");
            return (Criteria) this;
        }

        public Criteria andPlatformIdIsNotNull() {
            addCriterion("platform_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlatformIdEqualTo(Integer value) {
            addCriterion("platform_id =", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdNotEqualTo(Integer value) {
            addCriterion("platform_id <>", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdGreaterThan(Integer value) {
            addCriterion("platform_id >", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("platform_id >=", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdLessThan(Integer value) {
            addCriterion("platform_id <", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdLessThanOrEqualTo(Integer value) {
            addCriterion("platform_id <=", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdIn(List<Integer> values) {
            addCriterion("platform_id in", values, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdNotIn(List<Integer> values) {
            addCriterion("platform_id not in", values, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdBetween(Integer value1, Integer value2) {
            addCriterion("platform_id between", value1, value2, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdNotBetween(Integer value1, Integer value2) {
            addCriterion("platform_id not between", value1, value2, "platformId");
            return (Criteria) this;
        }

        public Criteria andIndustryIdIsNull() {
            addCriterion("industry_id is null");
            return (Criteria) this;
        }

        public Criteria andIndustryIdIsNotNull() {
            addCriterion("industry_id is not null");
            return (Criteria) this;
        }

        public Criteria andIndustryIdEqualTo(Integer value) {
            addCriterion("industry_id =", value, "industryId");
            return (Criteria) this;
        }

        public Criteria andIndustryIdNotEqualTo(Integer value) {
            addCriterion("industry_id <>", value, "industryId");
            return (Criteria) this;
        }

        public Criteria andIndustryIdGreaterThan(Integer value) {
            addCriterion("industry_id >", value, "industryId");
            return (Criteria) this;
        }

        public Criteria andIndustryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("industry_id >=", value, "industryId");
            return (Criteria) this;
        }

        public Criteria andIndustryIdLessThan(Integer value) {
            addCriterion("industry_id <", value, "industryId");
            return (Criteria) this;
        }

        public Criteria andIndustryIdLessThanOrEqualTo(Integer value) {
            addCriterion("industry_id <=", value, "industryId");
            return (Criteria) this;
        }

        public Criteria andIndustryIdIn(List<Integer> values) {
            addCriterion("industry_id in", values, "industryId");
            return (Criteria) this;
        }

        public Criteria andIndustryIdNotIn(List<Integer> values) {
            addCriterion("industry_id not in", values, "industryId");
            return (Criteria) this;
        }

        public Criteria andIndustryIdBetween(Integer value1, Integer value2) {
            addCriterion("industry_id between", value1, value2, "industryId");
            return (Criteria) this;
        }

        public Criteria andIndustryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("industry_id not between", value1, value2, "industryId");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdIsNull() {
            addCriterion("administration_orgniaztion_id is null");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdIsNotNull() {
            addCriterion("administration_orgniaztion_id is not null");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdEqualTo(Integer value) {
            addCriterion("administration_orgniaztion_id =", value, "administrationOrgniaztionId");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdNotEqualTo(Integer value) {
            addCriterion("administration_orgniaztion_id <>", value, "administrationOrgniaztionId");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdGreaterThan(Integer value) {
            addCriterion("administration_orgniaztion_id >", value, "administrationOrgniaztionId");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("administration_orgniaztion_id >=", value, "administrationOrgniaztionId");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdLessThan(Integer value) {
            addCriterion("administration_orgniaztion_id <", value, "administrationOrgniaztionId");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdLessThanOrEqualTo(Integer value) {
            addCriterion("administration_orgniaztion_id <=", value, "administrationOrgniaztionId");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdIn(List<Integer> values) {
            addCriterion("administration_orgniaztion_id in", values, "administrationOrgniaztionId");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdNotIn(List<Integer> values) {
            addCriterion("administration_orgniaztion_id not in", values, "administrationOrgniaztionId");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdBetween(Integer value1, Integer value2) {
            addCriterion("administration_orgniaztion_id between", value1, value2, "administrationOrgniaztionId");
            return (Criteria) this;
        }

        public Criteria andAdministrationOrgniaztionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("administration_orgniaztion_id not between", value1, value2, "administrationOrgniaztionId");
            return (Criteria) this;
        }

        public Criteria andManagementFormsIsNull() {
            addCriterion("management_forms is null");
            return (Criteria) this;
        }

        public Criteria andManagementFormsIsNotNull() {
            addCriterion("management_forms is not null");
            return (Criteria) this;
        }

        public Criteria andManagementFormsEqualTo(String value) {
            addCriterion("management_forms =", value, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsNotEqualTo(String value) {
            addCriterion("management_forms <>", value, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsGreaterThan(String value) {
            addCriterion("management_forms >", value, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsGreaterThanOrEqualTo(String value) {
            addCriterion("management_forms >=", value, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsLessThan(String value) {
            addCriterion("management_forms <", value, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsLessThanOrEqualTo(String value) {
            addCriterion("management_forms <=", value, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsLike(String value) {
            addCriterion("management_forms like", value, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsNotLike(String value) {
            addCriterion("management_forms not like", value, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsIn(List<String> values) {
            addCriterion("management_forms in", values, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsNotIn(List<String> values) {
            addCriterion("management_forms not in", values, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsBetween(String value1, String value2) {
            addCriterion("management_forms between", value1, value2, "managementForms");
            return (Criteria) this;
        }

        public Criteria andManagementFormsNotBetween(String value1, String value2) {
            addCriterion("management_forms not between", value1, value2, "managementForms");
            return (Criteria) this;
        }

        public Criteria andNetworkStateIsNull() {
            addCriterion("network_state is null");
            return (Criteria) this;
        }

        public Criteria andNetworkStateIsNotNull() {
            addCriterion("network_state is not null");
            return (Criteria) this;
        }

        public Criteria andNetworkStateEqualTo(String value) {
            addCriterion("network_state =", value, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateNotEqualTo(String value) {
            addCriterion("network_state <>", value, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateGreaterThan(String value) {
            addCriterion("network_state >", value, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateGreaterThanOrEqualTo(String value) {
            addCriterion("network_state >=", value, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateLessThan(String value) {
            addCriterion("network_state <", value, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateLessThanOrEqualTo(String value) {
            addCriterion("network_state <=", value, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateLike(String value) {
            addCriterion("network_state like", value, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateNotLike(String value) {
            addCriterion("network_state not like", value, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateIn(List<String> values) {
            addCriterion("network_state in", values, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateNotIn(List<String> values) {
            addCriterion("network_state not in", values, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateBetween(String value1, String value2) {
            addCriterion("network_state between", value1, value2, "networkState");
            return (Criteria) this;
        }

        public Criteria andNetworkStateNotBetween(String value1, String value2) {
            addCriterion("network_state not between", value1, value2, "networkState");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}